
for k=1:length(sampleplate)
    
    odblk = sampleplate(k).OD600_blanked;
    

    
    % Calculate growth rate 

    t = sampleplate(k).time;
    logodblk = log(odblk);

   
    sampleplate(k).growth_rate_sliding_2 = AAD_growthrate_sliding(t,logodblk,15);
    sampleplate(k).growth_rate_sliding_3 = AAD_growthrate_sliding(t,logodblk,40);
    sampleplate(k).growth_rate_sliding_4 = AAD_growthrate_sliding(t,logodblk,75);
    
    
    
end